<?php /* SVN: $Id: admin_add.ctp 17696 2010-08-05 12:37:07Z boopathi_026ac09 $ */ ?>
<div class="translations form">
<?php echo $this->Form->create('Translation', array('class' => 'normal'));?>
	<fieldset>
 	<?php
		echo $this->Form->input('from_language', array('value' => __l('English'), 'disabled' => true));
		echo $this->Form->input('language_id', array('label' => __l('To Language'))); ?>

<div class="clearfix">
 <div class="submit-block manual grid_left clearfix">
		<?php
		echo $this->Form->submit('Manual Translate', array('name' => 'data[Translation][manualTranslate]'));
	   ?>
	   </div>
   <div class="content-info grid_15 alpha omega">
    <h5><?php echo __l('Manual Translate:');?></h5>
	<p><?php echo __l('It will only populate site labels for selected new language. You need to manually enter all the equivalent translated label');?></p>
</div>
</div>
<div class="clearfix">
    <div class="submit-block manual grid_left clearfix">
		<?php
		echo $this->Form->submit('Google Translate', array('name' => 'data[Translation][googleTranslate]'));
	?>
	</div>
   <div class="grid_16 alpha omega"> <div class="content-info">
		<h5><?php echo __l('Google Translate:');?></h5>
		<p><?php echo __l('It will automatically translate site labels into selected language with Google');?></p>
	</div>
<?php if(!Configure::read('google.translation_api_key')): ?>
	<div class="content-info">
		<p><?php echo __l('Google Translate service is currently a paid service and you\'d need API key to use it.');?></p>
		<p><?php echo __l('Please enter Google Translate API key in '); echo $this->Html->link(__l('Settings'), array('controller' => 'settings', 'action' => 'index', '#Google_Translations'), array('title' => __l('Settings'))) . __l(' page');?></p>
	</div>
<?php endif; ?>
</div>
</div>
	</fieldset>
<?php echo $this->Form->end();?>
</div>